package com.whl.sm.model.parking;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wuhaolun
 * @since 2021-11-01
 */
@Data
public class ParkingRecord {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 停车场id
     */
    private String parkingLotsId;

    /**
     * 车牌号
     */
    private String licensePlate;


    /**
     * 有效值1:有效 0:无效
     */
    private Integer visible;


    /**
     * 进场时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date enterTime;

    /**
     * 离场时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date leaveTime;

    /**
     * 逻辑删除
     */
    private Integer isDel;


    /**
     *---------------------非数据库字段----------
     * */
    @TableField(exist = false)
    private String parkingLotsCode;
}
